<template>
	<view class="follow-page">
		<!-- #ifdef H5 -->
		<u-navbar title="关注公众号" :autoBack="true" leftIconColor="#000000" titleStyle="color:#000000;" :placeholder="true"></u-navbar>
		<!-- #endif -->
		
		<!-- <view class="title-box">
			<view class="title1">Contact Us</view>
			<view class="title2">关注公众号</view>
		</view> -->
		<view class="cqrode-box">
			<view class="cqrode-title">长按识别二维码</view>
			<image :src="$OssUrl(code_image)" class="cqrode" :show-menu-by-longpress="true" v-if="code_image"></image>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				code_image: ''
			}
		},
		onLoad() {
			this.getOfficialAcconutConfig()
		},
		methods: {
			getOfficialAcconutConfig() {
				this.$Api['common'].getUserConfig({
					site: 'official_account'
				}).then(res => {
					this.code_image = res.data
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.follow-page {
		width: 100%;
		min-height: 100vh;
		position: relative;
		background-color: #FFE9FC;
		background-image: url('../../static/mine/page_bg.png');
		background-size: 100% 80%;
		background-repeat: no-repeat;
		.title-box {
			margin: 0 130rpx;
			position: absolute;
			top: 80rpx;
			color: #FFFFFF;
			.title1 {
				font-size: 56rpx;
				color: transparent;
				background-image: -webkit-linear-gradient(270deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
				-webkit-background-clip: text;
			}

			.title2 {
				font-size: 96rpx;
				margin-top: -30rpx;
			}
		}

		.cqrode-box {
			position: absolute;
			top: 35%;
			left: 50%;
			transform: translateX(-50%);
			padding: 60rpx;
			background: linear-gradient(to bottom, #F9A2FB 0%, #F169F6 100%);
			border-radius: 32rpx;
			border: 2rpx solid #FFFFFF;
			z-index: 10;
			.cqrode-title {
				text-align: center;
				font-weight: 600;
				font-size: 40rpx;
				color: #FFFFFF;
				margin-bottom: 36rpx;
			}
			.cqrode {
				width: 478rpx;
				height: 478rpx;
			}

			
		}
	}
</style>